<?php
namespace app\admin\controller;
use think\Db;
/**
 * 商家
 * Class Member
 */
class AboutController extends BaseController {

	public function index(){
		if($this->request->isPost()){
			$data=get_query()['query'];
			$res=db('about')->update($data);
	
			if($res){
				$this->success('更新成功',url("index"));
				
			}else{
				$this->success('更新失败');	
			}
		}
		$list=db('about')->select();
		$this->assign('list',$list);
		return $this->fetch();
	}
	
	
}
